﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlexiCommerce.Components;

namespace FlexiCommerce
{
    public class DestinationEventArgs : ItemEventArgs
    {
        private HierarchicalPersistenceItem destination;

        /// <summary>Creates a new instance of the DestinationEventArgs.</summary>
        /// <param name="affectedItem">The item associated with these arguments.</param>
        /// <param name="destination">The destination for the event with these arguments.</param>
        public DestinationEventArgs(HierarchicalPersistenceItem affectedItem, HierarchicalPersistenceItem destination)
            : base((PersistenceItem)affectedItem)
        {
            this.destination = destination;
        }

        /// <summary>Gets the destination for the event with these arguments.</summary>
        public HierarchicalPersistenceItem Destination
        {
            get { return destination; }
        }
    }
}
